package com.wangzeqi.neihanduanzi.home.picture.entity.greendao;

import android.database.sqlite.SQLiteDatabase;

import java.util.Map;

import de.greenrobot.dao.AbstractDao;
import de.greenrobot.dao.AbstractDaoSession;
import de.greenrobot.dao.identityscope.IdentityScopeType;
import de.greenrobot.dao.internal.DaoConfig;

import com.wangzeqi.neihanduanzi.home.picture.entity.greendao.PictureEntity;

import com.wangzeqi.neihanduanzi.home.picture.entity.greendao.PictureEntityDao;

// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.

/**
 * {@inheritDoc}
 * 
 * @see de.greenrobot.dao.AbstractDaoSession
 */
public class DaoSession extends AbstractDaoSession {

    private final DaoConfig pictureEntityDaoConfig;

    private final PictureEntityDao pictureEntityDao;

    public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
            daoConfigMap) {
        super(db);

        pictureEntityDaoConfig = daoConfigMap.get(PictureEntityDao.class).clone();
        pictureEntityDaoConfig.initIdentityScope(type);

        pictureEntityDao = new PictureEntityDao(pictureEntityDaoConfig, this);

        registerDao(PictureEntity.class, pictureEntityDao);
    }
    
    public void clear() {
        pictureEntityDaoConfig.getIdentityScope().clear();
    }

    public PictureEntityDao getPictureEntityDao() {
        return pictureEntityDao;
    }

}
